layui.use(['form','layer','jquery','laypage','laydate'],function() {
    var form = layui.form(),
        layer = parent.layer === undefined ? layui.layer : parent.layer,
        laypage = layui.laypage,
        $ = layui.jquery,
        laydate = layui.laydate;
        $.ajax({
            contentType:'application/x-www-form-urlencoded; charset=UTF-8',
            type:"post",
            url: detail,
            data: null,
            dataType: "json",
            success: function(data){
                var html='';
                var td=data.data
                for(var i=0;i<td.length;i++){
                    html+='<div class="item-table" id="'+td[i].bh+'"><div class="item-list" ><span class="fl">住户姓名<em>'+td[i].zhxm+'</em></span><i class="icons more">&#xe628;</i><em class="fr">'+showday()+'</em>'
                    html+=  '</div></div>'
                }
                $(".item-tb").html(html);
                $(".item-table").click(function(){
                    var bhs=$(this).attr("id");
                    window.location.href="./detail.html?bh=" + bhs
                })
            },
            error: function(e) {
                console.log(e)
            }
        });

})